package com.wa.controller;
import cn.hutool.core.lang.Console;
import com.wa.util.WebUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
public class WebUtilController {

    @RequestMapping("/request")
    public String handle01(@RequestParam("name") String name){
        String name2 = WebUtils.getRequest().get().getParameter("name");
        Console.log(name2);
        return "Hello, Spring Boot 2!"+"你好："+name;
    }
}
